﻿IF NOT EXISTS (SELECT NULL FROM sys.assemblies WHERE name = 'System.Drawing')
	CREATE ASSEMBLY [System.Drawing]
	FROM 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\System.Drawing.dll'
	WITH PERMISSION_SET = UNSAFE;

IF NOT EXISTS (SELECT NULL FROM sys.assemblies WHERE name = 'Microsoft.AnalysisServices.SPClient.Interfaces')
	CREATE ASSEMBLY [Microsoft.AnalysisServices.SPClient.Interfaces]
	FROM 'C:\Windows\assembly\GAC_MSIL\Microsoft.AnalysisServices.SPClient.Interfaces\12.0.0.0__89845dcd8080cc91\Microsoft.AnalysisServices.SPClient.Interfaces.dll'
	WITH PERMISSION_SET = UNSAFE;

IF NOT EXISTS (SELECT NULL FROM sys.assemblies WHERE name = 'Microsoft.AnalysisServices.AdomdClient')
	CREATE ASSEMBLY [Microsoft.AnalysisServices.AdomdClient]
	FROM 'C:\Program Files\Microsoft.NET\ADOMD.NET\120\Microsoft.AnalysisServices.AdomdClient.dll'
	WITH PERMISSION_SET = UNSAFE;